﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using TimeForing.Models;

namespace TimeForing.ViewModels
{
    public class TaskIndexViewModel
    {
        public List<Story> Stories { get; private set; }


        public TaskIndexViewModel()
        {
            TimeforingRepository repo = new TimeforingRepository();
            Stories = (from s in repo.FindAllStories()
                      where s.Tasks.Count > 0
                      select s).ToList ();
         
        }

    }
}
